Mobile and Web Messaging by Jeff Mesnil

Mobile and Web Messaging by Jeff Mesnil

Author:Jeff Mesnil
Language: eng
Format: epub, pdf
Publisher: O'Reilly Media, Inc.
Published: 2014-08-27T04:00:00+00:00


Warning

A Web socket can be opened only once. If a problem occurs and the socket is closed, it can no longer be used. This implies that we cannot just call the client’s connect method again as its Web Socket is no longer usable. Instead, we must create a new client that will open a new Web Socket.

Whenever an error occurs (e.g., if the network connection is broken or the STOMP broker becomes temporarily unavailable), the errorCallback will be called and the client will try to reconnect.

Depending on your application, you may instead decide to report the error to the user and let him know that the client is no longer able to exchange messages with the broker.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.